package com.agent.web.report;

import com.agent.page.EasyuiPage;
import com.agent.service.ICustomerSatisfactionService;
import com.agent.util.CommonUtils;
import com.agent.vo.CustomerSatisfactionVO;
import com.agent.vo.RepaireAndSatisVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping(value = "/report/customerSatisfaction")
@RestController()
public class CustomerSatisfactionController {

    @Resource(name = "customerSatisfactionService")
    private ICustomerSatisfactionService customerSatisfactionService;

    @RequestMapping(value = "/list",method = RequestMethod.GET)
    public EasyuiPage list(Integer page, Integer rows,RepaireAndSatisVO vo){
        vo.setCurrentName(CommonUtils.encodeStr(vo.getCurrentName()));
        return customerSatisfactionService.getRepaireAndSatis(page,rows,vo);
    }

}
